#ifndef _ISAMPLE_H_
#define _ISAMPLE_H_

#include <string>

class SerialDevice;

class Sample {
public:
  Sample(SerialDevice* device, double nodata) : _device(device), _nodata(nodata) {}
  virtual ~Sample() {}
  
  virtual double value() const = 0;
  virtual std::string raw() const = 0;

  double nodata() const {return _nodata;}

protected:
  SerialDevice* _device;
  double _nodata;
};

#endif
